using System;
using System.Collections.Generic;
using System.Text;

namespace DLL.Essences
{
   public class StructUnit
    {   
       private int id;
       private string name;
       private string address;
       private DateTime date;
       private int userId;

       public StructUnit()
       {

       }

       public StructUnit(int ID, string Name,string Address, DateTime Date, int UserId)
        {
            id = ID;
            name = Name;
            date = Date;
            userId = UserId;
            address = Address;
        }

       public int Id
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }
       
       public string Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

       public string Address
       {
           get
           {
               return address;
           }
           set
           {
               address = value;
           }
       }

       public DateTime Date
        {
            get
            {
                return date;
            }
            set
            {
                date = value;
            }
        }

       public int UserId
        {
            get
            {
                return userId;
            }
            set
            {
                userId = value;
            }
        }
    }
}
